<?php
/**
 *
 * @version
 * @author duongthienduc
 **/

?>


<div id="toolbar-box">
	<div class="t">
		<div class="t">
			<div class="t"></div>
		</div>
	</div>
	<div class="m">
		<div class="toolbar" id="toolbar">
		<table class="toolbar">
			<tbody>
				<tr>
					<td class="button" id="toolbar-publish"><a href="#"
									onclick="javascript:if(document.adminForm.boxchecked.value==0){alert('Please select a Category from the list to publish');}else{  submitbutton('publish')}"
									class="toolbar"> <span class="icon-32-publish" title="Publish"> </span> Publish </a></td>
	
					<td class="button" id="toolbar-unpublish"><a href="#"
									onclick="javascript:if(document.adminForm.boxchecked.value==0){alert('Please select a Category from the list to unpublish');}else{  submitbutton('unpublish')}"
									class="toolbar"> <span class="icon-32-unpublish" title="Unpublish"> </span> Unpublish </a></td>
	
					<td class="button" id="toolbar-move"><a href="#"
									onclick="javascript:if(document.adminForm.boxchecked.value==0){alert('Please select a Category from the list to move');}else{ hideMainMenu(); submitbutton('moveselect')}"
									class="toolbar"> <span class="icon-32-move" title="Move"> </span> Move </a></td>
	
					<td class="button" id="toolbar-copy"><a href="#"
									onclick="javascript:if(document.adminForm.boxchecked.value==0){alert('Please select a Category from the list to copy');}else{ hideMainMenu(); submitbutton('copyselect')}"
									class="toolbar"> <span class="icon-32-copy" title="Copy"> </span> Copy </a></td>
	
					<td class="button" id="toolbar-delete"><a href="#"
									onclick="javascript:if(document.adminForm.boxchecked.value==0){alert('Please select a Category from the list to delete');}else{  submitbutton('remove')}"
									class="toolbar"> <span class="icon-32-delete" title="Delete"> </span> Delete </a></td>
	
					<td class="button" id="toolbar-edit"><a href="#"
									onclick="javascript:if(document.adminForm.boxchecked.value==0){alert('Please select a Category from the list to edit');}else{ hideMainMenu(); submitbutton('edit')}"
									class="toolbar"> <span class="icon-32-edit" title="Edit"> </span> Edit </a></td>
	
					<td class="button" id="toolbar-new"><a href="#" onclick="javascript:hideMainMenu(); submitbutton('add')"
									class="toolbar"> <span class="icon-32-new" title="New"> </span> New </a></td>
	
					<td class="button" id="toolbar-help"><a href="#"
									onclick="popupWindow('http://help.joomla.org/index2.php?option=com_content&amp;task=findkey&amp;tmpl=component;1&amp;keyref=screen.content.categories.15', 'Help', 640, 480, 1)"
									class="toolbar"> <span class="icon-32-help" title="Help"> </span> Help </a></td>
				</tr>
			</tbody>
		</table>
		</div>
		<div class="header icon-48-categories">Article Manager: <small><small>[ News ]</small></small></div>
	
		<div class="clr"></div>
	</div>
	<div class="b">
		<div class="b">
			<div class="b"></div>
		</div>
	</div>
</div>
<div class="clr"></div>

<div id="element-box">
	<div class="t">
		<div class="t">
			<div class="t"></div>
		</div>
	</div>
	<div class="m">
		<form action="index.php?option=com_categories&amp;section=com_content" method="post" name="adminForm">
		<table>
			<tr>
				<td align="left" width="100%">Filter: <input name="search" id="search" value="" class="text_area"
							onchange="document.adminForm.submit();" type="text">
					<button onclick="this.form.submit();">Go</button>
					<button
							onclick="document.getElementById('search').value='';this.form.getElementById('sectionid').value='-1';this.form.getElementById('filter_state').value='';this.form.submit();">Reset</button>
				</td>
				<td nowrap="nowrap"><select name="sectionid" id="sectionid" class="inputbox" size="1"
							onchange="document.adminForm.submit();">
							<option value="-1">- Select Section -</option>
							<option value="1">Home Contents</option>
							<option value="2">News</option>
					</select> <select name="filter_state" id="filter_state" class="inputbox" size="1" onchange="submitform( );">
							<option value="" selected="selected">- Select State -</option>
							<option value="P">Published</option>
							<option value="U">Unpublished</option>
				</select></td>
			</tr>
		</table>

		<table class="adminlist">
			<thead>
				<tr>
					<th align="left" width="10">#</th>
					<th width="20"><input name="toggle" value="" onclick="checkAll(7);" type="checkbox"></th>
					<th class="title"><a href="javascript:tableOrdering('c.title','desc','');"
									title="Click to sort by this column">Title</a></th>
					<th width="5%"><a href="javascript:tableOrdering('c.published','desc','');"
									title="Click to sort by this column">Published</a></th>
					<th nowrap="nowrap" width="8%"><a href="javascript:tableOrdering('c.ordering','desc','');"
									title="Click to sort by this column">Order<img src="/wlink/administrator/images/sort_asc.png" alt=""></a>
					<a href="javascript:saveorder(6, 'saveorder')" title="Save Order"><img
									src="/wlink/administrator/images/filesave.png" alt="Save Order"></a></th>
					<th width="7%"><a href="javascript:tableOrdering('groupname','desc','');"
									title="Click to sort by this column">Access Level</a></th>
					<th class="title" width="30%"><a href="javascript:tableOrdering('section_name','desc','');"
									title="Click to sort by this column">Parent</a></th>
					<th nowrap="nowrap" width="1%"><a href="javascript:tableOrdering('c.id','desc','');"
									title="Click to sort by this column">ID</a></th>
				</tr>
			</thead>
			<tfoot>
				<tr>
					<td colspan="13"><del class="container">
						<div class="pagination">
	
						<div class="limit">Display #<select name="limit" id="limit" class="inputbox" size="1"
							onchange="submitform();">
							<option value="5">5</option>
							<option value="10">10</option>
							<option value="15">15</option>
							<option value="20" selected="selected">20</option>
							<option value="25">25</option>
							<option value="30">30</option>
							<option value="50">50</option>
							<option value="100">100</option>
							<option value="0">all</option>
						</select></div>
						<div class="limit"></div>
						<input name="limitstart" value="0" type="hidden"></div>
					</del></td>
				</tr>
			</tfoot>
			<tbody>
				<?php foreach ($this->newsArticles as $index => $newsArticle): ?>
				
				<tr class="row0">
					<td><?php echo $index + 1 ?></td>
					<td><input id="cb0" name="cid[]" value="1" onclick="isChecked(this.checked);" type="checkbox"></td>
					<td><span class="editlinktip hasTip"> <a
							href="<?php echo $this->url(array('controller' => 'news', 'action' => 'article.edit', 'cid' => $newsArticle->news_article_id)); ?>">
						<?php echo $newsArticle->title ?></a> </span>
					</td>
					<td align="center"><a href="javascript:void(0);" onclick="return listItemTask('cb0','unpublish')"
									title="Unpublish this Category"> <img src="<?php echo $this->themeUrl('/images/admin/tick.png') ?>" alt="Published" border="0"></a></td>
					<td class="order"><span>&nbsp;</span> <span><a href="#reorder"
									onclick="return listItemTask('cb0','orderdown')" title="Move Down"> <img src="<?php echo $this->themeUrl('/images/admin/downarrow.png') ?>"
									alt="Move Down" border="0" height="16" width="16"></a></span> <input name="order[]" size="5" value="<?php //echo $newsArticle->order ?>"
									class="text_area" style="text-align: center;" type="text"></td>
					<td align="center"><a href="javascript:void(0);" onclick="return listItemTask('cb0','accessregistered')"
									style="color: green;"> Public</a></td>
					<td><a href="index.php?option=com_sections&amp;task=edit&amp;cid[]=1" title="Edit Section"> Home Contents</a>
					</td>
					<td align="center"><?php echo $newsArticle->news_article_id ?></td>
				</tr>
				<?php endforeach; ?>
			</tbody>
		</table>
	
		<input name="option" value="com_categories" type="hidden"> <input name="section" value="com_content" type="hidden"> <input
			name="task" value="" type="hidden"> <input name="chosen" value="" type="hidden"> <input name="act" value=""
			type="hidden"> <input name="boxchecked" value="0" type="hidden"> <input name="type" value="content" type="hidden"> <input
			name="filter_order" value="c.ordering" type="hidden"> <input name="filter_order_Dir" value="" type="hidden"> <input
			name="776139d5166901a33aa91c41268ed7e1" value="1" type="hidden"></form>
	
		<div class="clr"></div>
	</div>
	<div class="b">
		<div class="b">
			<div class="b"></div>
		</div>
	</div>
</div>
<noscript>Warning! JavaScript must be enabled for proper operation of the Administrator back-end.</noscript>
<div class="clr"></div>

